package com.cheetah.start.system.menu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cheetah.start.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统菜单
 *
 * @author Feel
 * @date 2021/08/22
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName(value = "sys_menu")
public class SysMenu extends BaseEntity {

    @TableId(type = IdType.AUTO, value = "menu_id")
    private Integer menuId;

    /** 菜单名称 */
    private String menuName;

    /** 菜单类型 */
    private String menuType;

    /** 菜单的代码 */
    private String menuCode;

    /** 菜单url */
    private String menuUrl;

    /** 打开类型 */
    private String openType;

    /** 父id */
    private Integer parentId;

    private String icon;

    private Integer sort;

    private String enable;

    /** 树形组件 */
    @TableField(exist = false)
    private String checkArr = "0";
}
